
import { get_article_detail } from "@/api/article";
export default {
    data() {
        return {
            article:{}
        }
      },
      computed: {
        article_id() {
          return this.$route.query.id;
        },
        user_id() {
          return this.$store.state.user.uid;
        },
      },
      created() {
        this.get_article_detail();
      },
      methods: {
        get_article_detail() {
          let { user_id, article_id } = this;
          get_article_detail({
            user_id,
            article_id,
          }).then((res) => {
            console.log(res);
               if(res.code === 0){
                   this.article = res.data;
                
               }
          });
        },
      },


}